package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AiDeepseekSpokesmanMapper;
import com.ruoyi.common.core.domain.entity.AiDeepseekSpokesman;
import com.ruoyi.system.service.IAiDeepseekSpokesmanService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class AiDeepseekSpokesmanServiceImpl implements IAiDeepseekSpokesmanService
{
    @Autowired
    private AiDeepseekSpokesmanMapper aiDeepseekSpokesmanMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AiDeepseekSpokesman selectAiDeepseekSpokesmanById(Long id)
    {
        return aiDeepseekSpokesmanMapper.selectAiDeepseekSpokesmanById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param aiDeepseekSpokesman 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AiDeepseekSpokesman> selectAiDeepseekSpokesmanList(AiDeepseekSpokesman aiDeepseekSpokesman)
    {
        return aiDeepseekSpokesmanMapper.selectAiDeepseekSpokesmanList(aiDeepseekSpokesman);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param aiDeepseekSpokesman 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAiDeepseekSpokesman(AiDeepseekSpokesman aiDeepseekSpokesman)
    {
        aiDeepseekSpokesman.setCreateTime(DateUtils.getNowDate());
        return aiDeepseekSpokesmanMapper.insertAiDeepseekSpokesman(aiDeepseekSpokesman);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param aiDeepseekSpokesman 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAiDeepseekSpokesman(AiDeepseekSpokesman aiDeepseekSpokesman)
    {
        aiDeepseekSpokesman.setUpdateTime(DateUtils.getNowDate());
        return aiDeepseekSpokesmanMapper.updateAiDeepseekSpokesman(aiDeepseekSpokesman);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekSpokesmanByIds(Long[] ids)
    {
        return aiDeepseekSpokesmanMapper.deleteAiDeepseekSpokesmanByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekSpokesmanById(Long id)
    {
        return aiDeepseekSpokesmanMapper.deleteAiDeepseekSpokesmanById(id);
    }
}
